:root {
  font-family: 'Ma Shan Zheng', cursive, 'Microsoft YaHei', sans-serif;
  line-height: 1.5;
  font-weight: 400;

  /* 基础样式优化 */
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 确保所有标题都使用统一的字体和颜色 */
h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  line-height: 1.2;
}

/* 链接基础样式 */
a {
  color: inherit;
  text-decoration: none;
}

/* 按钮基础样式重置，详细样式在App.css中定义 */
button {
  font-family: inherit;
  cursor: pointer;
}

/* 输入框基础样式 */
input, textarea, select {
  font-family: inherit;
}

/* 移除默认的表单元素样式 */
input:focus, button:focus, textarea:focus, select:focus {
  outline: none;
}

/* 确保根元素充满整个视口 */
#root {
  width: 100%;
  min-height: 100vh;
}
